hide keyboard in flutter

48

FocusScope.of(context).unfocus()
/// Hide the soft keyboard.
void hideKeyboard(BuildContext context) {
  FocusScope.of(context).requestFocus(FocusNode());
}

Comments

Submit
0 Comments